package com.lz.ovuola.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * 
 * 
 * @author fz
 *
 */
@Table(name = "version", uniqueConstraints = { @UniqueConstraint(columnNames = "id") })
@Entity(name = "versionDo")
public class VersionDo extends BaseDo {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8274809537270877030L;

	@Id
	@GeneratedValue
	private Integer id;

	/**
	 * 1:强制升级 2：非强制升级
	 */
	@Column(name = "app_is_forced")
	private Integer appIsForced;

	/**
	 * 描述详情
	 */
	@Column(name = "app_specification")
	private String appSpecification;

	/**
	 * app版本
	 */
	@Column(name = "app_version")
	private String appVersion;
	/**
	 * apk下载路径
	 */
	@Column(name = "app_download_url")
	private String appDownloadUrl;

	/**
	 * 硬件版本
	 */
	@Column(name = "hardware_version")
	private String hardwareVersion;

	/**
	 * 1:强制升级 2：非强制升级
	 */
	@Column(name = "hardware_is_forced")
	private Integer hardwareIsForced;
	/**
	 * 程序代码
	 */
	@Column(name = "hardware_code")
	private String hardwareCode;
	@Column(name = "hardware_specification")
	private String hardwareSpecification;
	/**
	 * 程序开关 1:开启 2:关闭
	 */
	@Column(name = "program_switch")
	private Integer programSwitch;

	@Column(name = "create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;

	@Column(name = "update_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date updateTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getAppIsForced() {
		return appIsForced;
	}

	public void setAppIsForced(Integer appIsForced) {
		this.appIsForced = appIsForced;
	}

	public String getAppSpecification() {
		return appSpecification;
	}

	public void setAppSpecification(String appSpecification) {
		this.appSpecification = appSpecification;
	}

	public String getAppVersion() {
		return appVersion;
	}

	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}

	public String getAppDownloadUrl() {
		return appDownloadUrl;
	}

	public void setAppDownloadUrl(String appDownloadUrl) {
		this.appDownloadUrl = appDownloadUrl;
	}

	public String getHardwareVersion() {
		return hardwareVersion;
	}

	public void setHardwareVersion(String hardwareVersion) {
		this.hardwareVersion = hardwareVersion;
	}

	public Integer getHardwareIsForced() {
		return hardwareIsForced;
	}

	public void setHardwareIsForced(Integer hardwareIsForced) {
		this.hardwareIsForced = hardwareIsForced;
	}

	public String getHardwareCode() {
		return hardwareCode;
	}

	public void setHardwareCode(String hardwareCode) {
		this.hardwareCode = hardwareCode;
	}

	public String getHardwareSpecification() {
		return hardwareSpecification;
	}

	public void setHardwareSpecification(String hardwareSpecification) {
		this.hardwareSpecification = hardwareSpecification;
	}

	public Integer getProgramSwitch() {
		return programSwitch;
	}

	public void setProgramSwitch(Integer programSwitch) {
		this.programSwitch = programSwitch;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}
